/**
 * @author v.lugovsky
 * created on 16.12.2015
 */
(function () {
  'use strict';

  angular.module('BlurAdmin.pages.staffManage.staffList')
      .controller('SetStaffModalCtrl', SetStaffModalCtrl);

  /** @ngInject */
  function SetStaffModalCtrl($scope, $uibModalInstance, item, allCompany) {
    $scope.formData = item || {};
    $scope.editFlag = !!item;
    $scope.allCompany = allCompany;

    $scope.validate = function () {
      console.log('validate', $scope.formData);

      $scope.validateFlag = true;
    };

    $scope.ok = function () {
      console.log('ok', $scope.formData);
      $uibModalInstance.close($scope.formData);
    };

    $scope.cancel = function () {
      $uibModalInstance.dismiss('cancel');
    };









  }
})();
